Trigger Run from Job template

Creates a new job run using the configuration stored in the specified job template. Optional run properties can be overridden for this execution.

POST{accelqLoginUrl}/awb/api/2.0/{tenantCode}/{projectCode}/test-exec/jobs/templates/{templateJobId}/run

Headers

HeaderValue
user_idLogin username (email)
api_keyAPI key of the user for authentication
Content-Typeapplication/json
Acceptapplication/json

Parameters

ParameterTypeRequiredDescription
accelqLoginUrlstringYesThe AccelQ login URL for API access.
tenantCodestringYesTenant code for identifying the organization.
projectCodestringYesProject Code found under Auth properties of ACCELQ User Profile
templateJobIdnumberYesJob Id of the template job to be executed.
user_idstringYesLogin username (email)
api_keystringYesAPI key of the user for authentication

Request Body

json
{
  "runProperties": {
    "totalTickets": "10",
    "maxPrice": "4000"
  }
}

Responses

200 - Template Job triggered

json
{
  "jobPid": 89,
  "templateJobPid": 77,
  "message": "Job run successfully created using the provided template job ID."
}

404 - Template job not found.

json
{
  "error": "Template job with pid : 31 does not exist in the project."
}

cURL Command Builder

URL Parameters

Headers

Request Sample (cURL)

curl -X POST "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/${{projectCode}}/test-exec/jobs/templates/${{templateJobId}}/run" \
  -H "user_id: ${{user_id}}" \
  -H "api_key: ${{api_key}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
  "runProperties": {
    "totalTickets": "10",
    "maxPrice": "4000"
  }
}'